﻿using UnityEngine;
using System.Collections;

public class PlayerControls : MonoBehaviour {

	public float moveSpeed = 10f;

	void Update () {
		if(Input.GetKey(KeyCode.W)){
			transform.Translate(Vector2.up * moveSpeed * Time.deltaTime);
		}
		if(Input.GetKey(KeyCode.S)){
			transform.Translate(-Vector2.up * moveSpeed * Time.deltaTime);
		}
		if(Input.GetKey(KeyCode.A)){
			transform.Translate(-Vector2.right * moveSpeed * Time.deltaTime);
		}
		if(Input.GetKey(KeyCode.D)){
			transform.Translate(Vector2.right * moveSpeed * Time.deltaTime);
		}
	}
}
